home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mush-7.1.1 / makefile.sun < prev    next >
Encoding:
Makefile  |  1990-05-02  |  2.2 KB  |  69 lines

  1. # makefile.sun    (c) copyright 1986    (Dan Heller)
  2. #
  3. HDRS= mush.h config.h-dist strings.h bindings.h options.h version.h glob.h
  4.  
  5. SRCS= addrs.c bind.c commands.c curs_io.c curses.c dates.c doproc.c \
  6.       execute.c expr.c file.c fkeys.c folders.c glob.c hdrs.c init.c lock.c \
  7.       loop.c macros.c mail.c main.c malloc.c misc.c misc_frame.c msgs.c \
  8.       options.c panels.c pick.c print.c hdr_sw.c setopts.c signals.c sort.c \
  9.       strings.c tool.c tooledit.c viewopts.c
  10.  
  11. OBJS= addrs.o bind.o commands.o curs_io.o curses.o dates.o doproc.o \
  12.       execute.o expr.o file.o fkeys.o folders.o glob.o hdrs.o init.o lock.o \
  13.       loop.o macros.o mail.o main.o malloc.o misc.o misc_frame.o msgs.o \
  14.       options.o panels.o pick.o print.o hdr_sw.o setopts.o signals.o sort.o \
  15.       strings.o tool.o tooledit.o viewopts.o
  16.  
  17. IMAGES= mail.icon.1 mail.icon.2
  18.  
  19. HELP_FILES= README README-7.0 README-7.1 mush.1 cmd_help tool_help \
  20.             Mushrc Mailrc Gnurc advanced.mushrc sample.mushrc digestify
  21.  
  22. MAKES= makefile.sun makefile.bsd makefile.sys.v makefile.xenix makefile.hpux
  23.  
  24. # If your SunOS version is 3.5, add -DSUN_3_5 to CFLAGS.
  25. # If your SunOS version is 4.1, add -DSUN_4_1 to CFLAGS.
  26. # If you are not using SUNTOOL, use makefile.bsd and add one of
  27. #    -DSUN_3_5, -DSUN_4_0, or -DSUN_4_1 to CFLAGS there.
  28. CFLAGS= -O -DSUNTOOL -DCURSES -DBSD
  29. LDFLAGS=
  30. LIBES= -lcurses -ltermlib -lsuntool -lsunwindow -lpixrect
  31. OTHERLIBS=
  32. # Use some variant of this one if you #define MMDF in config.h
  33. #OTHERLIBS=/usr/src/mmdf/lib/libmmdf.a
  34. LINTFLAGS= -bxah -Dlint
  35.  
  36. mush: $(OBJS)
  37.     @echo loading...
  38.     @cc $(LDFLAGS) $(OBJS) $(LIBES) $(OTHERLIBS) -o mush
  39.  
  40. $(OBJS): config.h mush.h
  41. loop.o: version.h
  42.  
  43. lint:
  44.     lint $(LINTFLAGS) $(SRCS) -DSUNTOOL -DCURSES -DBSD
  45.  
  46. clean:
  47.     rm -f *.o core mush
  48.  
  49. BINDIR= /usr/local/bin
  50. LIBDIR= /usr/local/lib
  51. MRCDIR= /usr/lib
  52. MANDIR= /usr/local/man/man1
  53. MANEXT= 1
  54.  
  55. install: mush
  56.     mv mush $(BINDIR)
  57.     strip $(BINDIR)/mush
  58.     chmod 0755 $(BINDIR)/mush
  59.     rm -f $(BINDIR)/mushtool
  60.     ln -s $(BINDIR)/mush $(BINDIR)/mushtool
  61.     cp mush.1 $(MANDIR)/mush.$(MANEXT)
  62.     chmod 0644 $(MANDIR)/mush.$(MANEXT)
  63.     cp tool_help $(LIBDIR)
  64.     chmod 0644 $(LIBDIR)/tool_help
  65.     cp cmd_help $(LIBDIR)
  66.     chmod 0644 $(LIBDIR)/cmd_help
  67.     cp Mushrc $(MRCDIR)/Mushrc
  68.     chmod 0644 $(MRCDIR)/Mushrc
  69.